projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02892c5
)
iconview: Fix a problem with the previous change
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 31 Jan 2018 16:44:26 +0000
(17:44 +0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 31 Jan 2018 16:44:26 +0000
(17:44 +0100)
After commit
ffef28a7e8d5ffef7de6a3baccb30b0021b6b0ff
,
gtk-icon-browser was spewing critical warnings when
changing sections. Avoid that by respecting the return
value of gtk_tree_model_get_iter.
gtk/gtkiconview.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconview.c
b/gtk/gtkiconview.c
index 86be6f8c420be2847b04f006711e5409ba87c62e..0a7ed4be88b81431a88f749d125312061a9d8a30 100644
(file)
--- a/
gtk/gtkiconview.c
+++ b/
gtk/gtkiconview.c
@@
-3314,8
+3314,8
@@
gtk_icon_view_row_deleted (GtkTreeModel *model,
if (gtk_tree_path_get_depth (path) > 1)
return;
- gtk_tree_model_get_iter (model, &iter, path);
- gtk_tree_model_unref_node (model, &iter);
+ if (gtk_tree_model_get_iter (model, &iter, path))
+
gtk_tree_model_unref_node (model, &iter);
index = gtk_tree_path_get_indices(path)[0];